package com.aaa.dao;

import com.wsc.entity.Role;
import com.aaa.entity.User;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserDaos {
   @Select("select * from user where name=#{name} ")
   List<User> login(String name);
   @Select("select * from role where rid=#{rid} ")
   List<Role> selectRole(Integer rid);
   public List<User> select(Integer pageCode,Integer pageSize,User user);
   public List<User> selectByNP(String name,String password);
   public Integer insert(User user);
   public Integer updateP(User user);
   public Integer update(User user);
   public Integer updateS(User user);
   public List<User> selectSelf(User user);
   public List<User> select8();
}
